function delRecord(sid){
    if(confirm('Are you sure to delete?')){
        window.location.href = 'test/del?id='+sid;
    }
}